import request from '@/config/axios'

// 分页
export const getDocPage = async (params) => {
  return await request.get({ url: '/system/my-doc/page', params })
}

// 创建
export const getDocCreate = async (data) => {
  return await request.post({ url: '/system/my-doc/create', data })
}

// 更新
export const getDocPut = async (data) => {
  return await request.put({ url: '/system/my-doc/update', data })
}

// 详情
export const getDoc = async (id) => {
  return await request.get({ url: '/system/my-doc/get?id=' + id })
}

// 删除
export const getDocDelete = async (id) => {
  return await request.delete({ url: '/system/my-doc/delete?id=' + id })
}
